package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 角色中 paas_permissions 对应的某个表单的操作权限
 * @author kaka
 * @time 2018-9-12 19:39
 */
@Getter
@Setter
@ToString
public class OpPermsPojo implements Serializable {

    private static final long serialVersionUID = 5595772468485319482L;

    /**
     * 表单读权限
     */
    private Integer read;

    /**
     * 表单新建权限
     */
    private Integer create;

    /**
     * 表单修改权限
     */
    private Integer update;

    /**
     * 表单删除权限
     */
    private Integer delete;

    /**
     * 表单打印权限
     */
    private Integer print;

    /**
     * 表单导出权限
     */
    private Integer export;

    /**
     * 表单导入权限
     * import 为关键字
     */
    private Integer imports;

    //==================== 以下流程相关权限 ====================

    /**
     * 流程读权限
     */
    private Integer flowRead;

    /**
     * 流程发起权限
     */
    private Integer flowCreate;

    /**
     * 流程结束权限
     */
    private Integer flowClose;

    /**
     * 流程转交权限
     */
    private Integer flowTransfer;

    /**
     * 流程激活权限
     */
    private Integer flowActivate;

    /**
     * 流程编辑权限
     */
    private Integer flowUpdate;

    public OpPermsPojo() {
        // 默认无权限，TODO 这里后续可能需要调整
        this.read = 0;
        this.create = 0;
        this.delete = 0;
        this.update = 0;
        this.print = 0;
        this.export = 0;
        this.imports = 0;

        this.flowActivate = 0;
        this.flowClose = 0;
        this.flowCreate = 0;
        this.flowRead = 0;
        this.flowTransfer = 0;
        this.flowUpdate = 0;
    }
}
